package cn.waka.sys.admin.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import cn.waka.sys.admin.object.User;

@Mapper
public interface IUserDao {
	User findByLogin(String login);

	List<User> findList(@Param("map")Map<String, String> param,@Param("start")int start,@Param("size")int size);

	int findCount(@Param("map")Map<String, String> param);

	User findById(int id);

	int insert(final User u);

	int updateUser(User u);

	int updatePassword(@Param("id")int uid, @Param("password")String password);

	int saveAuth( @Param("id")int uid,  @Param("auth")String auth);

	int updateStatus( @Param("id")int uid,  @Param("status")String status);

	int del(int uid);
}
